#ifndef __BTREENODE_H__
#define __BTREENODE_H__
#include "Common.h"
#include "TreeNode.h"

NAME_SPACE_BEGIN

enum class BTNodePos
{
	any = 0,
	left,
	right
};

template<typename T>
class BTreeNode : public TreeNode<T>
{
public:
	BTreeNode<T>* left_{ nullptr };
	BTreeNode<T>* right_{ nullptr };

	BTreeNode() {}

	static BTreeNode<T>* NewNode() {
		auto ret = new BTreeNode<T>();

		if (ret != nullptr) {
			ret->m_flag = true;
		}

		return ret;
	}
};


NAME_SPACE_END

#endif
